gtk-demo printing gives wrong results on win32 because it doesn't set the
authorDominic Lachowicz <domlachowicz@gmail.com>
Fri, 22 Feb 2008 22:38:47 +0000 (22:38 +0000)
committerDom Lachowicz <doml@src.gnome.org>
Fri, 22 Feb 2008 22:38:47 +0000 (22:38 +0000)
2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>

        * demos/gtk-demo/printing.c (do_printing): gtk-demo printing
gives
        wrong results on win32 because it doesn't set the printing
units,
        which affect the transformation of the cairo context
        (#347125, Erik van Pienbroek)

svn path=/trunk/; revision=19635

ChangeLog
demos/gtk-demo/printing.c

index 630d4b70f69c1e217716cb9502677e9ac24e00b6..200ce17bcc6b146002db462698f6c471d262b88d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>
+
+       * demos/gtk-demo/printing.c (do_printing): gtk-demo printing gives 
+       wrong results on win32 because it doesn't set the printing units, 
+       which affect the transformation of the cairo context 
+       (#347125, Erik van Pienbroek)
+       
 2008-02-22  Tor Lillqvist  <tml@novell.com>
 
        * tests/pixbuf-init.c: Add file missing from SVN, from the tarball.
index 33b4b445f8c00d201f8f6d6116acb9c6aedbdf3c..be1e066ca83b90c5e9ed6746b74d8ffffa046655 100644 (file)
@@ -161,6 +161,9 @@ do_printing (GtkWidget *do_widget)
   g_signal_connect (G_OBJECT (operation), "end-print", 
                    G_CALLBACK (end_print), data);
 
+  gtk_print_operation_set_use_full_page (operation, FALSE);
+  gtk_print_operation_set_unit (operation, GTK_UNIT_POINTS);
+
   gtk_print_operation_run (operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, GTK_WINDOW (do_widget), &error);
 
   g_object_unref (operation);